package com.xaicode.auth.entity;

import com.xaicode.auth.base.BaseEntity;
import com.xaicode.auth.constant.EnableEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户信息
 * 
 * @date 2024/12/6
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
public class SysRole extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 角色KEY
     */
    private String roleKey;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色描述
     */
    private String description;

    /**
     * 角色状态
     *
     * @see EnableEnum#ENABLE
     * @see EnableEnum#DISABLE
     */
    private Integer status;

    /**
     * 数据权限
     */
    private Integer dataScope;

}
